/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sisos.Controle;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import org.primefaces.context.RequestContext;


/**
 *
 * @author FLAVIOFAV
 */
public class Mensagem {

    public void showMessage(){
        RequestContext.getCurrentInstance().showMessageInDialog(new FacesMessage(FacesMessage.SEVERITY_INFO, "Confirmação", "Registro salvo.")); 
    }
    
    public void mensagemSimples(ActionEvent actionEvent) {  
        FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO,"Confirmação", "Registro salvo"));  
    }
}
